package cn.jhz.learn.blog.service.core.auth.article;

import cn.jhz.learn.blog.vo.article.query.page.ConsolePageView;
import cn.jhz.learn.blog.vo.article.submit.ArticleParam;
import org.jetbrains.annotations.NotNull;

import java.util.Map;

public interface ConsoleArticleService {
    Integer create(Integer uid, ArticleParam param);

    void delete(Integer uid, Integer id, Boolean deep);

    void update(Integer uid, ArticleParam param);

    void stick(Integer uid, Integer id, Boolean sticky);

    void recycle(Integer uid, Integer id);

    Map<String, Object> getDetail(Integer uid, Integer id);

    Map<String, Object> getCountAndList(Integer uid, @NotNull ConsolePageView pageView);
}


